package com.guli.mall.pms.feign;

import com.guli.common.utils.R;
import com.guli.mall.sms.entity.MemberPriceEntity;
import com.guli.mall.sms.entity.SkuFullReductionEntity;
import com.guli.mall.sms.entity.SkuLadderEntity;
import com.guli.mall.sms.entity.SpuBoundsEntity;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/*
 * @Author 罗
 * @date 2020/9/29 - 9:18 上午
 */
@FeignClient(name = "coupon-service")
public interface CouponServiceFeignClient {


    //插入SkuFullReduction
    @PostMapping("/sms/skufullreduction/save")
    R saveSkuFullReduction(@RequestBody SkuFullReductionEntity skuFullReduction) ;


    @PostMapping("/sms/memberprice/saveBatch")
    @ApiOperation("批量插入MemberPrice")
    R saveBatchMemberPrice(@RequestBody List<MemberPriceEntity> memberPriceList);

    // 保存积分
    @PostMapping("/sms/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsEntity spuBounds);

    @PostMapping("/sms/skuladder/save")
    R saveSkuLadder(@RequestBody SkuLadderEntity skuLadderEntity);
}
